#ifndef __SCNS_AT24C02_H__
#define __SCNS_AT24C02_H__

#include "ScnsConfig.h"

#if defined(SCNS_AT24C02_ENABLE)&&SCNS_AT24C02_ENABLE==1

#include "ScnsBspAt24c02.h"

#include "ScnsYing.h"

typedef enum
{
    SCNS_AT24C02_STATUS_OK=SCNS_YING_STATUS_OK,
    SCNS_AT24C02_STATUS_BSP_FAILED=SCNS_YING_STATUS_BSP_FAILED,
    SCNS_AT24C02_STATUS_FAILED=SCNS_YING_STATUS_FAILED,
    SCNS_AT24C02_STATUS_TIME_OUT=SCNS_YING_STATUS_TIME_OUT,
}ScnsAt24c02Status;

extern ScnsAt24c02Status scnsAt24c02Init(ScnsAt24c02Enum at2N);
extern uint8 scnsAt24c02ReadByte(ScnsAt24c02Enum at2N,uint8 addr);
extern void scnsAt24c02WriteByte(ScnsAt24c02Enum at2N,uint8 addr,uint8 data);
extern void scnsAt24c02ReadBytes(ScnsAt24c02Enum at2N,uint8 addr,uint8 data[],uint8 len);
extern void scnsAt24c02WriteBytes(ScnsAt24c02Enum at2N,uint8 addr,uint8 data[],uint8 len);
extern ScnsAt24c02Status scnsAt24c02Test(ScnsAt24c02Enum at2N,uint8 addr);

#endif
#endif
